package com.spark.demoim.ui

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.TextView
import com.spark.demoim.R
import org.jetbrains.anko.AnkoContext
import org.jetbrains.anko.find
import org.jetbrains.anko.toast

/**
 * Created by lenovo on 2017/8/15.
 */
class LoginActivity : AppCompatActivity(), LogRegisterView {
    override fun changMode() {
    }

    override fun phoneIsNull() {
        toast("电话号码不能为空")
    }

    override fun phoneIsError() {
        toast("电话号码格式不正确")
    }

    override fun passwordIsNull() {
        toast("密码不能为空")
    }

    override fun passwordIsError() {
        toast("密码不正确")
    }

    override fun loginResult(succeed: Boolean) {

    }

    override fun registerResult(succeed: Boolean) {

    }

    override fun logoutResult(succeed: Boolean) {

    }


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_login)
        //LoginLayout(this).createView(AnkoContext.Companion.create(this, true) as AnkoContext<LoginActivity>)
    }
}